{extend name="index\index"}
{block name="main"}
 {css href="/static/home/css/channellist-42b1c9e0.css" /}
 {css href="/static/home/css/media.css" /}
<div class="main">
    <div class="aside"><h4>一点号</h4>
        <div class="channel-category">
            <ul class="anim">
                    <a href="/media">      
                        <li data-index="" data-categoryid="undefined" class="category-item">热门</li>
                    </a>
                {volist name="subscr" id="vi"}
                    <a href="/media/{$vi['cid']}">
                        
                     <li data-index="{$vi['cid']}" data-categoryid="undefined" class="category-item">{$vi['cname']}</li>
                
                    </a>
                {/volist}
            </ul>
        </div>
        <span class="iconfont icon-arrow-down down"></span><span class="iconfont icon-arrow-up up"></span></div>
        <div class="chan-list">
            {volist name="hots" id="ho"}
            <div class="subscribe-item" data-index="{$ho['cid']}">
                <div class="inner-box">
                    <a href="/focus/{$ho['cid']}" target="_blank" class="chan-img"><img
                            src="{$ho['photo']}" width="90"></a>

                    <div class="chan-info">
                        <a href="/focus/{$ho['cid']}" target="_blank" class="chan-name">{$ho['cname']}</a>
                        {if !session('?tel')}
                        <button class="subscribe" data-index="{$ho['cid']}"  style="display: block">订阅</button>
                        {else /}
                            {in name="$ho['cid']" value="$list3"}
                                <button class="unsubscribe" data="{$ho['cid']}" style="display: block">已订阅</button>
                                <button class="subscribe" data="{$ho['cid']}" >订阅</button>
                            {else/}
                                <button class="unsubscribe" data="{$ho['cid']}" >已订阅</button>
                                <button class="subscribe" data="{$ho['cid']}" style="display: block">订阅</button>
                            {/in}   
                        {/if}
                    </div>
                </div>
            </div>
            {/volist}

          
        </div>
</div> 

{/block}